package model

import (
	"database/sql"
	"time"
)

// AccountAnalyticLine 工时单
type AccountAnalyticLine struct {
	ResCommon
	ProductUomId     int64
	AccountId        int64
	PartnerId        sql.NullInt64
	UserId           sql.NullInt64
	User             ResUsers
	CompanyId        int64
	CurrencyId       int64
	PlanId           sql.NullInt64
	Name             string
	Category         string
	Date             time.Time
	Amount           float64
	UnitAmount       float64
	ProductId        sql.NullInt64
	GeneralAccountId sql.NullInt64
	JournalId        sql.NullInt64
	MoveLineId       sql.NullInt64
	Code             sql.NullString
	Ref              sql.NullString
	TaskId           int64
	Task             ProjectTask
	AncestorTaskId   sql.NullInt64
	ProjectId        int64
	Project          ProjectProject
	EmployeeId       sql.NullInt64
	DepartmentId     sql.NullInt64
	ManagerId        sql.NullInt64
	HolidayId        sql.NullInt64
	GlobalLeaveId    sql.NullInt64
	Validated        sql.NullBool
	SlotId           sql.NullInt64
}

type AccountAnalyticPlan struct {
	Id                   int64
	ParentId             int64
	CompanyId            int64
	Color                int64
	CreateUid            int64
	WriteUid             int64
	Name                 string
	ParentPath           string
	CompleteName         string
	DefaultApplicability string
	Description          string
	CreateDate           time.Time
	WriteDate            time.Time
}

type AccountTaxHrExpenseSplitRel struct {
	HrExpenseSplitId int64
	AccountTaxId     int64
}

type AccountMoveLine struct {
	Id                     int64
	MoveId                 int64
	JournalId              int64
	CompanyId              int64
	CompanyCurrencyId      int64
	Sequence               int64
	AccountId              int64
	CurrencyId             int64
	PartnerId              int64
	ReconcileModelId       int64
	PaymentId              int64
	StatementLineId        int64
	StatementId            int64
	GroupTaxId             int64
	TaxLineId              int64
	TaxGroupId             int64
	TaxRepartitionLineId   int64
	FullReconcileId        int64
	AccountRootId          int64
	ProductId              int64
	ProductUomId           int64
	CreateUid              int64
	WriteUid               int64
	MoveName               string
	ParentState            string
	Ref                    string
	Name                   string
	TaxAudit               string
	MatchingNumber         string
	DisplayType            string
	Date                   time.Time
	DateMaturity           time.Time
	DiscountDate           time.Time
	AnalyticDistribution   string
	Debit                  string
	Credit                 string
	Balance                string
	AmountCurrency         string
	TaxBaseAmount          string
	AmountResidual         string
	AmountResidualCurrency string
	Quantity               string
	PriceUnit              string
	PriceSubtotal          string
	PriceTotal             string
	Discount               string
	DiscountAmountCurrency string
	DiscountBalance        string
	TaxTagInvert           bool
	Reconciled             bool
	Blocked                bool
	CreateDate             time.Time
	WriteDate              time.Time
	DiscountPercentage     float64
	VehicleId              int64
	ExpenseId              int64
	ExpectedPayDate        time.Time
	FollowupLineId         int64
	LastFollowupDate       time.Time
	NextActionDate         time.Time
}

type AccountAccount struct {
	Id                      int64
	MessageMainAttachmentId int64
	CurrencyId              int64
	CompanyId               int64
	GroupId                 int64
	RootId                  int64
	CreateUid               int64
	WriteUid                int64
	Name                    string
	Code                    string
	AccountType             string
	InternalGroup           string
	Note                    string
	Deprecated              bool
	IncludeInitialBalance   bool
	Reconcile               bool
	IsOffBalance            bool
	NonTrade                bool
	CreateDate              time.Time
	WriteDate               time.Time
	AssetModel              int64
	CreateAsset             string
	MultipleAssetsPerLine   bool
}

type AccountGroup struct {
	Id              int64
	ParentId        int64
	CompanyId       int64
	CreateUid       int64
	WriteUid        int64
	ParentPath      string
	Name            string
	CodePrefixStart string
	CodePrefixEnd   string
	CreateDate      time.Time
	WriteDate       time.Time
}

type AccountTax struct {
	Id                           int64
	CompanyId                    int64
	Sequence                     int64
	TaxGroupId                   int64
	CashBasisTransitionAccountId int64
	CountryId                    int64
	CreateUid                    int64
	WriteUid                     int64
	Name                         string
	TypeTaxUse                   string
	TaxScope                     string
	AmountType                   string
	Description                  string
	TaxExigibility               string
	Amount                       string
	Active                       bool
	PriceInclude                 bool
	IncludeBaseAmount            bool
	IsBaseAffected               bool
	Analytic                     bool
	CreateDate                   time.Time
	WriteDate                    time.Time
	RealAmount                   float64
}

type AccountAnalyticDistributionModel struct {
	Id                   int64
	PartnerId            int64
	PartnerCategoryId    int64
	CompanyId            int64
	CreateUid            int64
	WriteUid             int64
	AnalyticDistribution string
	CreateDate           time.Time
	WriteDate            time.Time
	ProductId            int64
	ProductCategId       int64
	AccountPrefix        string
}

type AccountAnalyticApplicability struct {
	Id             int64
	AnalyticPlanId int64
	CreateUid      int64
	WriteUid       int64
	BusinessDomain string
	Applicability  string
	CreateDate     time.Time
	WriteDate      time.Time
	ProductCategId int64
	AccountPrefix  string
}

type AccountFiscalPosition struct {
	Id             int64
	Sequence       int64
	CompanyId      int64
	CountryId      int64
	CountryGroupId int64
	CreateUid      int64
	WriteUid       int64
	Name           string
	ZipFrom        string
	ZipTo          string
	ForeignVat     string
	Note           string
	Active         bool
	AutoApply      bool
	VatRequired    bool
	CreateDate     time.Time
	WriteDate      time.Time
}

type AccountChartTemplate struct {
	Id                                          int64
	ParentId                                    int64
	CodeDigits                                  int64
	CurrencyId                                  int64
	IncomeCurrencyExchangeAccountId             int64
	ExpenseCurrencyExchangeAccountId            int64
	CountryId                                   int64
	AccountJournalSuspenseAccountId             int64
	AccountJournalPaymentDebitAccountId         int64
	AccountJournalPaymentCreditAccountId        int64
	DefaultCashDifferenceIncomeAccountId        int64
	DefaultCashDifferenceExpenseAccountId       int64
	DefaultPosReceivableAccountId               int64
	AccountJournalEarlyPayDiscountLossAccountId int64
	AccountJournalEarlyPayDiscountGainAccountId int64
	PropertyAccountReceivableId                 int64
	PropertyAccountPayableId                    int64
	PropertyAccountExpenseCategId               int64
	PropertyAccountIncomeCategId                int64
	PropertyAccountExpenseId                    int64
	PropertyAccountIncomeId                     int64
	PropertyStockAccountInputCategId            int64
	PropertyStockAccountOutputCategId           int64
	PropertyStockValuationAccountId             int64
	PropertyTaxPayableAccountId                 int64
	PropertyTaxReceivableAccountId              int64
	PropertyAdvanceTaxPaymentAccountId          int64
	PropertyCashBasisBaseAccountId              int64
	CreateUid                                   int64
	WriteUid                                    int64
	Name                                        string
	BankAccountCodePrefix                       string
	CashAccountCodePrefix                       string
	TransferAccountCodePrefix                   string
	Visible                                     bool
	UseAngloSaxon                               bool
	UseStornoAccounting                         bool
	CreateDate                                  time.Time
	WriteDate                                   time.Time
	SpokenLanguages                             string
}

type AccountFiscalPositionTemplate struct {
	Id              int64
	Sequence        int64
	ChartTemplateId int64
	CountryId       int64
	CountryGroupId  int64
	CreateUid       int64
	WriteUid        int64
	Name            string
	ZipFrom         string
	ZipTo           string
	Note            string
	AutoApply       bool
	VatRequired     bool
	CreateDate      time.Time
	WriteDate       time.Time
}

type AccountJournal struct {
	Id                      int64
	MessageMainAttachmentId int64
	DefaultAccountId        int64
	SuspenseAccountId       int64
	Sequence                int64
	CurrencyId              int64
	CompanyId               int64
	ProfitAccountId         int64
	LossAccountId           int64
	BankAccountId           int64
	SaleActivityTypeId      int64
	SaleActivityUserId      int64
	AliasId                 int64
	SecureSequenceId        int64
	CreateUid               int64
	WriteUid                int64
	Color                   int64
	Name                    string
	Code                    string
	Type                    string
	InvoiceReferenceType    string
	InvoiceReferenceModel   string
	BankStatementsSource    string
	SequenceOverrideRegex   string
	SaleActivityNote        string
	Active                  bool
	RestrictModeHashTable   bool
	RefundSequence          bool
	PaymentSequence         bool
	ShowOnDashboard         bool
	CreateDate              time.Time
	WriteDate               time.Time
	AccountOnlineAccountId  int64
	AccountOnlineLinkId     int64
}

type AccountAnalyticAccount struct {
	ResCommon
	MessageMainAttachmentId sql.NullInt64
	PlanId                  int64
	RootPlanId              int64
	CompanyId               int64
	PartnerId               sql.NullInt64
	Name                    string
	Code                    sql.NullString
	Active                  bool
}

type AccountAccountTag struct {
	Id            int64
	Color         int64
	CountryId     int64
	CreateUid     int64
	WriteUid      int64
	Name          string
	Applicability string
	Active        bool
	TaxNegate     bool
	CreateDate    time.Time
	WriteDate     time.Time
}

type AccountFiscalPositionResCountryStateRel struct {
	AccountFiscalPositionId int64
	ResCountryStateId       int64
}

type AccountFiscalPositionTax struct {
	Id         int64
	PositionId int64
	CompanyId  int64
	TaxSrcId   int64
	TaxDestId  int64
	CreateUid  int64
	WriteUid   int64
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountFiscalPositionAccount struct {
	Id            int64
	PositionId    int64
	CompanyId     int64
	AccountSrcId  int64
	AccountDestId int64
	CreateUid     int64
	WriteUid      int64
	CreateDate    time.Time
	WriteDate     time.Time
}

type AccountAccountTaxDefaultRel struct {
	AccountId int64
	TaxId     int64
}

type AccountAccountAccountTag struct {
	AccountAccountId    int64
	AccountAccountTagId int64
}

type AccountAccountAccountJournalRel struct {
	AccountAccountId int64
	AccountJournalId int64
}

type AccountJournalGroup struct {
	Id         int64
	CompanyId  int64
	Sequence   int64
	CreateUid  int64
	WriteUid   int64
	Name       string
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountJournalAccountJournalGroupRel struct {
	AccountJournalGroupId int64
	AccountJournalId      int64
}

type AccountTaxGroup struct {
	Id                int64
	Sequence          int64
	CountryId         int64
	CreateUid         int64
	WriteUid          int64
	PrecedingSubtotal string
	Name              string
	CreateDate        time.Time
	WriteDate         time.Time
}

type AccountTaxFiliationRel struct {
	ParentTax int64
	ChildTax  int64
}

type AccountTaxRepartitionLine struct {
	Id              int64
	AccountId       int64
	InvoiceTaxId    int64
	RefundTaxId     int64
	CompanyId       int64
	Sequence        int64
	CreateUid       int64
	WriteUid        int64
	RepartitionType string
	UseInTaxClosing bool
	CreateDate      time.Time
	WriteDate       time.Time
	FactorPercent   float64
}

type AccountAccountTagAccountTaxRepartitionLineRel struct {
	AccountTaxRepartitionLineId int64
	AccountAccountTagId         int64
}

type AccountReconcileModel struct {
	Id                         int64
	MessageMainAttachmentId    int64
	Sequence                   int64
	CompanyId                  int64
	PastMonthsLimit            int64
	CreateUid                  int64
	WriteUid                   int64
	Name                       string
	RuleType                   string
	MatchingOrder              string
	MatchNature                string
	MatchAmount                string
	MatchLabel                 string
	MatchLabelParam            string
	MatchNote                  string
	MatchNoteParam             string
	MatchTransactionType       string
	MatchTransactionTypeParam  string
	PaymentToleranceType       string
	DecimalSeparator           string
	Active                     bool
	AutoReconcile              bool
	ToCheck                    bool
	MatchTextLocationLabel     bool
	MatchTextLocationNote      bool
	MatchTextLocationReference bool
	MatchSameCurrency          bool
	AllowPaymentTolerance      bool
	MatchPartner               bool
	CreateDate                 time.Time
	WriteDate                  time.Time
	MatchAmountMin             float64
	MatchAmountMax             float64
	PaymentToleranceParam      float64
}

type AccountReconcileModelPartnerMapping struct {
	Id              int64
	ModelId         int64
	PartnerId       int64
	CreateUid       int64
	WriteUid        int64
	PaymentRefRegex string
	NarrationRegex  string
	CreateDate      time.Time
	WriteDate       time.Time
}

type AccountReconcileModelLine struct {
	Id                   int64
	ModelId              int64
	CompanyId            int64
	Sequence             int64
	AccountId            int64
	JournalId            int64
	CreateUid            int64
	WriteUid             int64
	Label                string
	AmountType           string
	AmountString         string
	AnalyticDistribution string
	ForceTaxIncluded     bool
	CreateDate           time.Time
	WriteDate            time.Time
	Amount               float64
}

type AccountReconcileModelLineAccountTaxRel struct {
	AccountReconcileModelLineId int64
	AccountTaxId                int64
}

type AccountJournalAccountReconcileModelRel struct {
	AccountReconcileModelId int64
	AccountJournalId        int64
}

type AccountReconcileModelResPartnerRel struct {
	AccountReconcileModelId int64
	ResPartnerId            int64
}

type AccountReconcileModelResPartnerCategoryRel struct {
	AccountReconcileModelId int64
	ResPartnerCategoryId    int64
}

type AccountPaymentTerm struct {
	Id               int64
	CompanyId        int64
	Sequence         int64
	CreateUid        int64
	WriteUid         int64
	Name             string
	Note             string
	Active           bool
	DisplayOnInvoice bool
	CreateDate       time.Time
	WriteDate        time.Time
}

type AccountPaymentTermLine struct {
	Id                 int64
	Months             int64
	Days               int64
	DaysAfter          int64
	DiscountDays       int64
	PaymentId          int64
	CreateUid          int64
	WriteUid           int64
	Value              string
	ValueAmount        string
	EndMonth           bool
	CreateDate         time.Time
	WriteDate          time.Time
	DiscountPercentage float64
}

type AccountAccountTemplate struct {
	Id                      int64
	MessageMainAttachmentId int64
	CurrencyId              int64
	ChartTemplateId         int64
	CreateUid               int64
	WriteUid                int64
	Name                    string
	Code                    string
	AccountType             string
	Note                    string
	Reconcile               bool
	Nocreate                bool
	CreateDate              time.Time
	WriteDate               time.Time
}

type AccountGroupTemplate struct {
	Id              int64
	ParentId        int64
	ChartTemplateId int64
	CreateUid       int64
	WriteUid        int64
	Name            string
	CodePrefixStart string
	CodePrefixEnd   string
	CreateDate      time.Time
	WriteDate       time.Time
}

type AccountPartialReconcile struct {
	Id                   int64
	DebitMoveId          int64
	CreditMoveId         int64
	FullReconcileId      int64
	ExchangeMoveId       int64
	DebitCurrencyId      int64
	CreditCurrencyId     int64
	CompanyId            int64
	CreateUid            int64
	WriteUid             int64
	MaxDate              time.Time
	Amount               string
	DebitAmountCurrency  string
	CreditAmountCurrency string
	CreateDate           time.Time
	WriteDate            time.Time
}

type AccountIncoterms struct {
	Id         int64
	CreateUid  int64
	WriteUid   int64
	Code       string
	Name       string
	Active     bool
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountCashRounding struct {
	Id             int64
	CreateUid      int64
	WriteUid       int64
	Strategy       string
	RoundingMethod string
	Name           string
	CreateDate     time.Time
	WriteDate      time.Time
	Rounding       float64
}

type AccountMoveLineAccountTaxRel struct {
	AccountMoveLineId int64
	AccountTaxId      int64
}

type AccountAccountTagAccountMoveLineRel struct {
	AccountMoveLineId   int64
	AccountAccountTagId int64
}

type AccountBankStatement struct {
	Id             int64
	CompanyId      int64
	JournalId      int64
	CreateUid      int64
	WriteUid       int64
	Name           string
	Reference      string
	FirstLineIndex string
	Date           time.Time
	BalanceStart   string
	BalanceEnd     string
	BalanceEndReal string
	IsComplete     bool
	CreateDate     time.Time
	WriteDate      time.Time
}

type AccountFullReconcile struct {
	Id             int64
	ExchangeMoveId int64
	CreateUid      int64
	WriteUid       int64
	Name           string
	CreateDate     time.Time
	WriteDate      time.Time
}

type AccountPaymentMethod struct {
	Id          int64
	CreateUid   int64
	WriteUid    int64
	Code        string
	PaymentType string
	Name        string
	CreateDate  time.Time
	WriteDate   time.Time
}

type AccountBankStatementIrAttachmentRel struct {
	AccountBankStatementId int64
	IrAttachmentId         int64
}

type AccountPaymentAccountBankStatementLineRel struct {
	AccountBankStatementLineId int64
	AccountPaymentId           int64
}

type AccountAccountTemplateTaxRel struct {
	AccountId int64
	TaxId     int64
}

type AccountAccountTemplateAccountTag struct {
	AccountAccountTemplateId int64
	AccountAccountTagId      int64
}

type AccountTaxTemplateFiliationRel struct {
	ParentTax int64
	ChildTax  int64
}

type AccountTaxRepartitionLineTemplate struct {
	Id              int64
	AccountId       int64
	InvoiceTaxId    int64
	RefundTaxId     int64
	CreateUid       int64
	WriteUid        int64
	RepartitionType string
	UseInTaxClosing bool
	CreateDate      time.Time
	WriteDate       time.Time
	FactorPercent   float64
}

type AccountTaxRepartitionFinancialTags struct {
	AccountTaxRepartitionLineTemplateId int64
	AccountAccountTagId                 int64
}

type AccountTaxRepTemplatePlus struct {
	AccountTaxRepartitionLineTemplateId int64
	AccountReportExpressionId           int64
}

type AccountReportExpression struct {
	Id              int64
	ReportLineId    int64
	CreateUid       int64
	WriteUid        int64
	Label           string
	Engine          string
	Formula         string
	Subformula      string
	DateScope       string
	FigureType      string
	CarryoverTarget string
	GreenOnPositive bool
	BlankIfZero     bool
	Auditable       bool
	CreateDate      time.Time
	WriteDate       time.Time
}

type AccountTaxRepTemplateMinus struct {
	AccountTaxRepartitionLineTemplateId int64
	AccountReportExpressionId           int64
}

type AccountFiscalPositionTemplateResCountryStateRel struct {
	AccountFiscalPositionTemplateId int64
	ResCountryStateId               int64
}

type AccountTaxTemplate struct {
	Id                           int64
	ChartTemplateId              int64
	Sequence                     int64
	TaxGroupId                   int64
	CashBasisTransitionAccountId int64
	CreateUid                    int64
	WriteUid                     int64
	Name                         string
	TypeTaxUse                   string
	TaxScope                     string
	AmountType                   string
	Description                  string
	TaxExigibility               string
	Amount                       string
	Active                       bool
	PriceInclude                 bool
	IncludeBaseAmount            bool
	IsBaseAffected               bool
	Analytic                     bool
	CreateDate                   time.Time
	WriteDate                    time.Time
}

type AccountFiscalPositionTaxTemplate struct {
	Id         int64
	PositionId int64
	TaxSrcId   int64
	TaxDestId  int64
	CreateUid  int64
	WriteUid   int64
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountFiscalPositionAccountTemplate struct {
	Id            int64
	PositionId    int64
	AccountSrcId  int64
	AccountDestId int64
	CreateUid     int64
	WriteUid      int64
	CreateDate    time.Time
	WriteDate     time.Time
}

type AccountReconcileModelTemplate struct {
	Id                         int64
	ChartTemplateId            int64
	Sequence                   int64
	CreateUid                  int64
	WriteUid                   int64
	Name                       string
	RuleType                   string
	MatchingOrder              string
	MatchNature                string
	MatchAmount                string
	MatchLabel                 string
	MatchLabelParam            string
	MatchNote                  string
	MatchNoteParam             string
	MatchTransactionType       string
	MatchTransactionTypeParam  string
	PaymentToleranceType       string
	DecimalSeparator           string
	AutoReconcile              bool
	ToCheck                    bool
	MatchTextLocationLabel     bool
	MatchTextLocationNote      bool
	MatchTextLocationReference bool
	MatchSameCurrency          bool
	AllowPaymentTolerance      bool
	MatchPartner               bool
	CreateDate                 time.Time
	WriteDate                  time.Time
	MatchAmountMin             float64
	MatchAmountMax             float64
	PaymentToleranceParam      float64
}

type AccountJournalAccountReconcileModelTemplateRel struct {
	AccountReconcileModelTemplateId int64
	AccountJournalId                int64
}

type AccountReconcileModelTemplateResPartnerRel struct {
	AccountReconcileModelTemplateId int64
	ResPartnerId                    int64
}

type AccountReconcileModelTemplateResPartnerCategoryRel struct {
	AccountReconcileModelTemplateId int64
	ResPartnerCategoryId            int64
}

type AccountReconcileModelLineTemplate struct {
	Id               int64
	ModelId          int64
	Sequence         int64
	AccountId        int64
	CreateUid        int64
	WriteUid         int64
	Label            string
	AmountType       string
	AmountString     string
	ForceTaxIncluded bool
	CreateDate       time.Time
	WriteDate        time.Time
}

type AccountReconcileModelLineTemplateAccountTaxTemplateRel struct {
	AccountReconcileModelLineTemplateId int64
	AccountTaxTemplateId                int64
}

type AccountAccountTagProductTemplateRel struct {
	ProductTemplateId   int64
	AccountAccountTagId int64
}

type AccountReportLine struct {
	Id             int64
	ReportId       int64
	HierarchyLevel int64
	ParentId       int64
	Sequence       int64
	ActionId       int64
	CreateUid      int64
	WriteUid       int64
	Groupby        string
	Code           string
	Name           string
	Foldable       bool
	PrintOnNewPage bool
	HideIfZero     bool
	CreateDate     time.Time
	WriteDate      time.Time
}

type AccountReportColumn struct {
	Id                  int64
	Sequence            int64
	ReportId            int64
	CustomAuditActionId int64
	CreateUid           int64
	WriteUid            int64
	ExpressionLabel     string
	FigureType          string
	Name                string
	Sortable            bool
	BlankIfZero         bool
	CreateDate          time.Time
	WriteDate           time.Time
}

type AccountReportExternalValue struct {
	Id                             int64
	TargetReportExpressionId       int64
	CompanyId                      int64
	ForeignVatFiscalPositionId     int64
	CarryoverOriginReportLineId    int64
	CreateUid                      int64
	WriteUid                       int64
	Name                           string
	CarryoverOriginExpressionLabel string
	Date                           time.Time
	CreateDate                     time.Time
	WriteDate                      time.Time
	Value                          float64
}

type AccountAutomaticEntryWizard struct {
	Id                   int64
	CompanyId            int64
	DestinationAccountId int64
	CreateUid            int64
	WriteUid             int64
	Action               string
	AccountType          string
	Date                 time.Time
	TotalAmount          string
	CreateDate           time.Time
	WriteDate            time.Time
	Percentage           float64
}

type AccountAutomaticEntryWizardAccountMoveLineRel struct {
	AccountAutomaticEntryWizardId int64
	AccountMoveLineId             int64
}

type AccountUnreconcile struct {
	Id         int64
	CreateUid  int64
	WriteUid   int64
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountMoveReversal struct {
	Id           int64
	JournalId    int64
	CompanyId    int64
	CreateUid    int64
	WriteUid     int64
	DateMode     string
	Reason       string
	RefundMethod string
	Date         time.Time
	CreateDate   time.Time
	WriteDate    time.Time
}

type AccountMoveReversalMove struct {
	ReversalId int64
	MoveId     int64
}

type AccountMoveReversalNewMove struct {
	ReversalId int64
	NewMoveId  int64
}

type AccountResequenceWizard struct {
	Id         int64
	CreateUid  int64
	WriteUid   int64
	FirstName  string
	Ordering   string
	FirstDate  time.Time
	EndDate    time.Time
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountMoveAccountResequenceWizardRel struct {
	AccountResequenceWizardId int64
	AccountMoveId             int64
}

type AccountFinancialYearOp struct {
	Id         int64
	CompanyId  int64
	CreateUid  int64
	WriteUid   int64
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountSetupBankManualConfig struct {
	Id                        int64
	ResPartnerBankId          int64
	NumJournalsWithoutAccount int64
	CreateUid                 int64
	WriteUid                  int64
	NewJournalName            string
	CreateDate                time.Time
	WriteDate                 time.Time
}

type AccountMoveAccountInvoiceSendRel struct {
	AccountInvoiceSendId int64
	AccountMoveId        int64
}

type AccountPaymentRegisterMoveLineRel struct {
	WizardId int64
	LineId   int64
}

type AccountTourUploadBill struct {
	Id         int64
	CreateUid  int64
	WriteUid   int64
	Selection  string
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountTourUploadBillIrAttachmentsRel struct {
	AccountTourUploadBillId int64
	IrAttachmentId          int64
}

type AccountTourUploadBillEmailConfirm struct {
	Id         int64
	CreateUid  int64
	WriteUid   int64
	EmailAlias string
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountAccruedOrdersWizard struct {
	Id           int64
	CompanyId    int64
	CurrencyId   int64
	AccountId    int64
	CreateUid    int64
	WriteUid     int64
	Date         time.Time
	ReversalDate time.Time
	Amount       string
	CreateDate   time.Time
	WriteDate    time.Time
}

type AccountInvoiceSend struct {
	Id                int64
	ComposerId        int64
	TemplateId        int64
	CreateUid         int64
	WriteUid          int64
	IsEmail           bool
	IsPrint           bool
	Printed           bool
	CreateDate        time.Time
	WriteDate         time.Time
	SnailmailIsLetter bool
}

type AccountTransferModel struct {
	Id         int64
	JournalId  int64
	CreateUid  int64
	WriteUid   int64
	Name       string
	Frequency  string
	State      string
	DateStart  time.Time
	DateStop   time.Time
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountPaymentRegister struct {
	Id                        int64
	CurrencyId                int64
	JournalId                 int64
	PartnerBankId             int64
	SourceCurrencyId          int64
	CompanyId                 int64
	PartnerId                 int64
	PaymentMethodLineId       int64
	WriteoffAccountId         int64
	CreateUid                 int64
	WriteUid                  int64
	Communication             string
	PaymentType               string
	PartnerType               string
	PaymentDifferenceHandling string
	WriteoffLabel             string
	PaymentDate               time.Time
	Amount                    string
	SourceAmount              string
	SourceAmountCurrency      string
	GroupPayment              bool
	CanEditWizard             bool
	CanGroupPayments          bool
	CreateDate                time.Time
	WriteDate                 time.Time
	PaymentTokenId            int64
}

type AccountModelRel struct {
	AccountTransferModelId int64
	AccountAccountId       int64
}

type AccountTransferModelLine struct {
	Id              int64
	TransferModelId int64
	AccountId       int64
	Sequence        int64
	CreateUid       int64
	WriteUid        int64
	CreateDate      time.Time
	WriteDate       time.Time
	Percent         float64
}

type AccountAnalyticAccountAccountTransferModelLineRel struct {
	AccountTransferModelLineId int64
	AccountAnalyticAccountId   int64
}

type AccountTransferModelLineResPartnerRel struct {
	AccountTransferModelLineId int64
	ResPartnerId               int64
}

type AccountOnlineAccount struct {
	Id                     int64
	AccountOnlineLinkId    int64
	CurrencyId             int64
	CreateUid              int64
	WriteUid               int64
	Name                   string
	OnlineIdentifier       string
	AccountNumber          string
	AccountData            string
	LastSync               time.Time
	InverseBalanceSign     bool
	InverseTransactionSign bool
	CreateDate             time.Time
	WriteDate              time.Time
	Balance                float64
}

type AccountOnlineLink struct {
	Id                          int64
	MessageMainAttachmentId     int64
	CompanyId                   int64
	CreateUid                   int64
	WriteUid                    int64
	State                       string
	Name                        string
	ClientId                    string
	RefreshToken                string
	AccessToken                 string
	ProviderData                string
	ExpiringSynchronizationDate time.Time
	AutoSync                    bool
	LastRefresh                 time.Time
	CreateDate                  time.Time
	WriteDate                   time.Time
}

type AccountLinkJournalLine struct {
	Id                    int64
	JournalId             int64
	CurrencyId            int64
	OnlineAccountId       int64
	AccountOnlineWizardId int64
	CreateUid             int64
	WriteUid              int64
	CreateDate            time.Time
	WriteDate             time.Time
}

type AccountLinkJournal struct {
	Id           int64
	NumberAdded  int64
	CreateUid    int64
	WriteUid     int64
	SyncDate     time.Time
	Transactions string
	CreateDate   time.Time
	WriteDate    time.Time
}

type AccountReport struct {
	Id                       int64
	RootReportId             int64
	ChartTemplateId          int64
	CountryId                int64
	LoadMoreLimit            int64
	CreateUid                int64
	WriteUid                 int64
	AvailabilityCondition    string
	DefaultOpeningDateFilter string
	FilterMultiCompany       string
	FilterHierarchy          string
	Name                     string
	OnlyTaxExigible          bool
	SearchBar                bool
	FilterDateRange          bool
	FilterShowDraft          bool
	FilterUnreconciled       bool
	FilterUnfoldAll          bool
	FilterPeriodComparison   bool
	FilterGrowthComparison   bool
	FilterJournals           bool
	FilterAnalytic           bool
	FilterAccountType        bool
	FilterPartner            bool
	FilterFiscalPosition     bool
	CreateDate               time.Time
	WriteDate                time.Time
	CustomHandlerModelId     int64
	MainTemplate             string
	MainTableHeaderTemplate  string
	LineTemplate             string
	FootnotesTemplate        string
	SearchTemplate           string
	FilterAnalyticGroupby    bool
}

type AccountTaxUnitResCompanyRel struct {
	ResCompanyId     int64
	AccountTaxUnitId int64
}

type AccountTaxUnit struct {
	Id            int64
	CountryId     int64
	MainCompanyId int64
	CreateUid     int64
	WriteUid      int64
	Name          string
	Vat           string
	CreateDate    time.Time
	WriteDate     time.Time
}

type AccountAccountExcludeResCurrencyProvision struct {
	AccountAccountId int64
	ResCurrencyId    int64
}

type AccountReportManager struct {
	Id         int64
	CompanyId  int64
	ReportId   int64
	CreateUid  int64
	WriteUid   int64
	ReportName string
	Summary    string
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountReportFootnote struct {
	Id         int64
	ManagerId  int64
	CreateUid  int64
	WriteUid   int64
	Text       string
	Line       string
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountReportAccountReportHorizontalGroupRel struct {
	AccountReportId                int64
	AccountReportHorizontalGroupId int64
}

type AccountReportHorizontalGroup struct {
	Id         int64
	CreateUid  int64
	WriteUid   int64
	Name       string
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountReportHorizontalGroupRule struct {
	Id                int64
	HorizontalGroupId int64
	CreateUid         int64
	WriteUid          int64
	Domain            string
	FieldName         string
	CreateDate        time.Time
	WriteDate         time.Time
}

type AccountReportsExportWizardFormat struct {
	Id             int64
	ExportWizardId int64
	CreateUid      int64
	WriteUid       int64
	Name           string
	FunToCall      string
	FunParam       string
	CreateDate     time.Time
	WriteDate      time.Time
}

type AccountMulticurrencyRevaluationWizard struct {
	Id           int64
	CompanyId    int64
	CreateUid    int64
	WriteUid     int64
	Date         time.Time
	ReversalDate time.Time
	CreateDate   time.Time
	WriteDate    time.Time
}

type AccountReportsExportWizard struct {
	Id         int64
	ReportId   int64
	CreateUid  int64
	WriteUid   int64
	DocName    string
	CreateDate time.Time
	WriteDate  time.Time
	FolderId   int64
}

type AccountFiscalYear struct {
	Id         int64
	CompanyId  int64
	CreateUid  int64
	WriteUid   int64
	Name       string
	DateFrom   time.Time
	DateTo     time.Time
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountChangeLockDate struct {
	Id                 int64
	CreateUid          int64
	WriteUid           int64
	PeriodLockDate     time.Time
	FiscalyearLockDate time.Time
	TaxLockDate        time.Time
	CreateDate         time.Time
	WriteDate          time.Time
}

type AccountMove struct {
	Id                             int64
	SequenceNumber                 int64
	MessageMainAttachmentId        int64
	JournalId                      int64
	CompanyId                      int64
	PaymentId                      int64
	StatementLineId                int64
	TaxCashBasisRecId              int64
	TaxCashBasisOriginMoveId       int64
	AutoPostOriginId               int64
	SecureSequenceNumber           int64
	InvoicePaymentTermId           int64
	PartnerId                      int64
	CommercialPartnerId            int64
	PartnerShippingId              int64
	PartnerBankId                  int64
	FiscalPositionId               int64
	CurrencyId                     int64
	ReversedEntryId                int64
	InvoiceUserId                  int64
	InvoiceIncotermId              int64
	InvoiceCashRoundingId          int64
	CreateUid                      int64
	WriteUid                       int64
	SequencePrefix                 string
	AccessToken                    string
	Name                           string
	Ref                            string
	State                          string
	MoveType                       string
	AutoPost                       string
	InalterableHash                string
	PaymentReference               string
	QrCodeMethod                   string
	PaymentState                   string
	InvoiceSourceEmail             string
	InvoicePartnerDisplayName      string
	InvoiceOrigin                  string
	Date                           time.Time
	AutoPostUntil                  time.Time
	InvoiceDate                    time.Time
	InvoiceDateDue                 time.Time
	Narration                      string
	AmountUntaxed                  string
	AmountTax                      string
	AmountTotal                    string
	AmountResidual                 string
	AmountUntaxedSigned            string
	AmountTaxSigned                string
	AmountTotalSigned              string
	AmountTotalInCurrencySigned    string
	AmountResidualSigned           string
	QuickEditTotalAmount           string
	IsStorno                       bool
	AlwaysTaxExigible              bool
	ToCheck                        bool
	PostedBefore                   bool
	IsMoveSent                     bool
	CreateDate                     time.Time
	WriteDate                      time.Time
	PaymentStateBeforeSwitch       string
	EdiState                       string
	ExtractStatusCode              int64
	ExtractRemoteId                int64
	ExtractAttachmentId            int64
	ExtractState                   string
	TransferModelId                int64
	TaxClosingEndDate              time.Time
	TaxReportControlError          bool
	Fapiao                         string
	AssetId                        int64
	AssetNumberDays                int64
	AssetDepreciationBeginningDate time.Time
	DepreciationValue              string
	AssetValueChange               bool
	SuspenseStatementLineId        int64
}

type AccountBankStatementLine struct {
	Id                          int64
	MoveId                      int64
	StatementId                 int64
	Sequence                    int64
	PartnerId                   int64
	CurrencyId                  int64
	ForeignCurrencyId           int64
	CreateUid                   int64
	WriteUid                    int64
	AccountNumber               string
	PartnerName                 string
	TransactionType             string
	PaymentRef                  string
	InternalIndex               string
	Amount                      string
	AmountCurrency              string
	IsReconciled                bool
	CreateDate                  time.Time
	WriteDate                   time.Time
	AmountResidual              float64
	CronLastCheck               time.Time
	UniqueImportId              string
	OnlineAccountId             int64
	OnlineLinkId                int64
	OnlineTransactionIdentifier string
	OnlinePartnerInformation    string
}

type AccountEdiFormatAccountJournalRel struct {
	AccountJournalId   int64
	AccountEdiFormatId int64
}

type AccountEdiFormat struct {
	Id         int64
	CreateUid  int64
	WriteUid   int64
	Name       string
	Code       string
	CreateDate time.Time
	WriteDate  time.Time
}

type AccountEdiDocument struct {
	Id            int64
	MoveId        int64
	EdiFormatId   int64
	AttachmentId  int64
	CreateUid     int64
	WriteUid      int64
	State         string
	BlockingLevel string
	Error         string
	CreateDate    time.Time
	WriteDate     time.Time
}

type AccountInvoiceExtractWords struct {
	Id            int64
	InvoiceId     int64
	WordPage      int64
	CreateUid     int64
	WriteUid      int64
	Field         string
	WordText      string
	OcrSelected   bool
	UserSelected  bool
	CreateDate    time.Time
	WriteDate     time.Time
	WordBoxMidx   float64
	WordBoxMidy   float64
	WordBoxWidth  float64
	WordBoxHeight float64
	WordBoxAngle  float64
}

type AccountPayment struct {
	Id                              int64
	MessageMainAttachmentId         int64
	MoveId                          int64
	PartnerBankId                   int64
	PairedInternalTransferPaymentId int64
	PaymentMethodLineId             int64
	PaymentMethodId                 int64
	CurrencyId                      int64
	PartnerId                       int64
	OutstandingAccountId            int64
	DestinationAccountId            int64
	DestinationJournalId            int64
	CreateUid                       int64
	WriteUid                        int64
	PaymentType                     string
	PartnerType                     string
	PaymentReference                string
	Amount                          string
	AmountCompanyCurrencySigned     string
	IsReconciled                    bool
	IsMatched                       bool
	IsInternalTransfer              bool
	CreateDate                      time.Time
	WriteDate                       time.Time
	PaymentTransactionId            int64
	PaymentTokenId                  int64
	SourcePaymentId                 int64
}

type AccountPaymentMethodLine struct {
	Id                int64
	Sequence          int64
	PaymentMethodId   int64
	PaymentAccountId  int64
	JournalId         int64
	CreateUid         int64
	WriteUid          int64
	Name              string
	CreateDate        time.Time
	WriteDate         time.Time
	PaymentProviderId int64
}

type AccountInvoiceTransactionRel struct {
	InvoiceId     int64
	TransactionId int64
}

type AccountAsset struct {
	Id                             int64
	MessageMainAttachmentId        int64
	CompanyId                      int64
	CurrencyId                     int64
	MethodNumber                   int64
	AccountAssetId                 int64
	AccountDepreciationId          int64
	AccountDepreciationExpenseId   int64
	JournalId                      int64
	ModelId                        int64
	ParentId                       int64
	CreateUid                      int64
	WriteUid                       int64
	Name                           string
	State                          string
	AssetType                      string
	Method                         string
	MethodPeriod                   string
	ProrataComputationType         string
	ProrataDate                    time.Time
	AcquisitionDate                time.Time
	DisposalDate                   time.Time
	AnalyticDistribution           string
	OriginalValue                  string
	BookValue                      string
	SalvageValue                   string
	NonDeductibleTaxValue          string
	AlreadyDepreciatedAmountImport string
	Active                         bool
	CreateDate                     time.Time
	WriteDate                      time.Time
	MethodProgressFactor           float64
	AssetPausedDays                float64
}

type AccountMoveAssetModifyRel struct {
	AssetModifyId int64
	AccountMoveId int64
}

type AccountMoveLineAssetModifyRel struct {
	AssetModifyId     int64
	AccountMoveLineId int64
}

type AccountFollowupManualReminderIrAttachmentRel struct {
	AccountFollowupManualReminderId int64
	IrAttachmentId                  int64
}

type AccountFollowupFollowupLine struct {
	Id                             int64
	Delay                          int64
	CompanyId                      int64
	MailTemplateId                 int64
	SmsTemplateId                  int64
	ActivityTypeId                 int64
	CreateUid                      int64
	WriteUid                       int64
	ActivitySummary                string
	ActivityDefaultResponsibleType string
	Name                           string
	ActivityNote                   string
	SendEmail                      bool
	JoinInvoices                   bool
	SendSms                        bool
	CreateActivity                 bool
	AutoExecute                    bool
	CreateDate                     time.Time
	WriteDate                      time.Time
	SendLetter                     bool
}

type AccountFollowupManualReminder struct {
	Id                int64
	TemplateId        int64
	PartnerId         int64
	SmsTemplateId     int64
	CreateUid         int64
	WriteUid          int64
	Lang              string
	Subject           string
	SmsBody           string
	Body              string
	Email             bool
	EmailAddSignature bool
	Sms               bool
	Print             bool
	JoinInvoices      bool
	CreateDate        time.Time
	WriteDate         time.Time
	Snailmail         bool
}

type AccountAnalyticLineHrTimesheetMergeWizardRel struct {
	HrTimesheetMergeWizardId int64
	AccountAnalyticLineId    int64
}
